#define _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"

void testHeap()
{
	Heap hp;
	InitHeap(&hp);

	//15,18,19,25,28,34,65,49,27,37,10
	int arr[] = { 65,100,70,32,50,60 };
	for (int i = 0; i < sizeof(arr) / 4; ++i)
	{
		PushHeap(&hp, arr[i]);
	}

	PirintHeap(&hp);

	while(!isHeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		PopHeap(&hp);
	}
	

	DestroyHeap(&hp);
}
int main()
{
	testHeap();
	return 0;
}